#include <stdio.h>

int a = 1;
int factorial(int x)
{
    int w = x;
    while (0 != w)
    {
        a*=w;
        w--;
    }
    return a;
}

int main()
{
    int e = factorial(10);
    printf("%d\n",e);


    return 0;
}